package com.zhong.subject.domain.convert;

import com.zhong.subject.domain.bo.SubjectCategoryBO;
import com.zhong.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper //此注解为mapstruct包下的
public interface SubjectCategoryConverter {
    SubjectCategoryConverter INSTANCE = Mappers.getMapper(SubjectCategoryConverter.class);
    SubjectCategory convertBoToCategory(SubjectCategoryBO subjectCategoryBo);

    List<SubjectCategoryBO> convertBoToCategory(List<SubjectCategory> subjectCategoryList );
}
